package top.healthylife.gateway.platform.bank.api.api;


import io.swagger.annotations.ApiModel;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import top.healthylife.gateway.core.service.ParentFace;
import top.healthylife.gateway.dto.annotation.ApiServiceExplain;
import top.healthylife.gateway.platform.bank.api.util.BankUtil;
import top.healthylife.gateway.platform.bank.dto.business.req.BankReqBusinessCreditReportSingleDto;
import top.healthylife.gateway.platform.bank.dto.business.res.BankResBusinessCreditReportSingleDto;

/**
 * @author : GaoZeXi
 * @date 2021/8/13 17:46
 */
@Slf4j
@Service
@ApiModel("企业征信报告单笔查询")
@ApiServiceExplain(price = 20, docUrl = "-", apiName = "企业征信报告单笔查询", info = "")
public class BankBusinessCreditReportSingleApi implements ParentFace<BankReqBusinessCreditReportSingleDto, BankResBusinessCreditReportSingleDto> {

    static final String URI = "comSingleCredit2Query";

    @Override
    public BankResBusinessCreditReportSingleDto execute(BankReqBusinessCreditReportSingleDto t) throws Exception {
        return BankUtil.HttpRequest(t,URI,BankResBusinessCreditReportSingleDto.class);
    }
}
